import java.awt.Color;
import java.awt.Dimension;
import java.awt.Graphics;

import javax.swing.JPanel;


public class AnimationsPanel extends JPanel
{
	private AnimationControl control;

	public AnimationsPanel(AnimationControl myControl)
	{
		super();
		control=myControl;
		setPreferredSize(new Dimension(1200,30));
	}
	
	public void paint(Graphics g) 
	{
		Color[] colors=control.getColors();
		for (int i=0;i<colors.length;i++)
		{
			g.setColor(colors[i]);
			g.fillRect((i*11)+50, 10, 10, 10);
		}
		
	}

}
